// 项目实例
const instance =  {
    type : [
        {
            id : 1,
            title : "智能表单",
            name : "form",
            icon : "icon-form",
            sec_title : '信息登记-人力行政管理-调查问卷',
            color : "#08979c",
            path  : 'form'
        }
    ],
    getType(type){
        let it = {};
        this.type.forEach( item => {
            if(item.id == type){
                it =  item;
            }
        });

        return it;
    },
    getTypeName(type){
        let name = '';

        this.type.forEach( item => {
            if(item.id == type){
                name = item.title;
            }
        });

        return name;
    }
}

export default instance;